package com.alibaba.ecool.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.ecool.bean.Register;

public interface UserRegisterService {
	
	    public UserLoginService getUserLoginService();

		public void setUserLoginService(UserLoginService userLoginService);

		public ModelAndView onSubmit(HttpServletRequest request,
				HttpServletResponse response, Object command, BindException errors)throws Exception;

		public ModelAndView init(Object command, BindException errors)throws Exception;

		public ModelAndView register(HttpServletRequest request,
				HttpServletResponse response, Object command, BindException errors)throws Exception;

		public boolean isExist(Register register);

		public void add(Register register);

}
